package com.gym.model.entity;

import java.sql.Date;

public class Payment {

	private Integer iduser;
	private Integer idcourse;
	private short months;
	private double amount;
	private Date pdate;
	
	public Payment(Integer iduser, Integer idcourse, short months, double amount, Date pdate) {
		
		this.iduser = iduser;
		this.idcourse = idcourse;
		this.months = months;
		this.amount = amount;
		this.pdate = pdate;
	}
	
	public Payment(Integer iduser, Integer idcourse, short months, double amount) {
		
		this.iduser = iduser;
		this.idcourse = idcourse;
		this.months = months;
		this.amount = amount;
	}

	public Integer getIduser() {
		return iduser;
	}

	public Integer getIdcourse() {
		return idcourse;
	}

	public short getMonths() {
		return months;
	}

	public double getAmount() {
		return amount;
	}

	public Date getPdate() {
		return pdate;
	}

	@Override
	public String toString() {
		return "Payment [iduser=" + iduser + ", idcourse=" + idcourse
				+ ", months=" + months + ", amount=" + amount + ", pdate="
				+ pdate + "]";
	}
}
